package org.mall.modules.order.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.mall.common.util.ObjectUtils;
import org.mall.modules.order.entity.OrderDO;
import org.mall.modules.order.mapper.OrderAdminMapper;
import org.mall.modules.pojo.order.dto.OrderDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单 service impl
 *
 * @author Sin
 * @time 2019-03-16 15:08
 */
@Slf4j
@Service
public class OrderAdminServiceImpl implements OrderAdminService  {

    @Autowired
    private OrderAdminMapper orderAdminMapper;
    @Override
    public List<OrderDTO> autoList(List<String> shopIds) {
        List<OrderDO> result=orderAdminMapper.selectSellerOrder(shopIds);
        List<OrderDTO> list= ObjectUtils.copyList(result,OrderDTO.class);
        return list;
    }
}